package com.woniuxy.feign;

import com.woniuxy.feign.hystrix.UtilHystrix;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author: wanghao
 * @Date: 2019/9/23 9:57
 *
 * 工具类远程调用
 */
@FeignClient(value = "util-server",fallback = UtilHystrix.class)
public interface UtilFeign {

    /**
     * 发送商品开始的短信信息
     *
     * @param phone
     * @param time
     * @param good
     * @return
     */
    @GetMapping("/sendtime/{phone}/{time}/{good}")
    String sendTime(@PathVariable("phone") String phone, @PathVariable("time") String time, @PathVariable("good") String good);

    @GetMapping("/sms/sendsuccess/{phone}/{good}")
    String sendMessage(@PathVariable("phone") String account, @PathVariable("good") String goodsName);
}
